package ve.usb;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;


public class Horario extends org.apache.struts.action.ActionForm {
    
    
    public Horario() {
        super();
        hora_ini = "";
        hora_fin = "";
        dia_sem = "";

    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        hora_ini = "";
        hora_fin = "";
        dia_sem = "";

    }

    public static Horario clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        Horario fHorario = (Horario) sess.getAttribute("Horario");
        if (fHorario == null) {
            fHorario = new Horario();
            sess.setAttribute("Horario", fHorario);
        } else {
            fHorario.reset(mapping, request);
        }
        return fHorario;
    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

    /**
     * Holds value of property hora_ini.
     */
    private String hora_ini;

    /**
     * Getter for property hora_ini.
     * @return Value of property hora_ini.
     */
    public String getHora_ini() {
        return this.hora_ini;
    }

    /**
     * Setter for property hora_ini.
     * @param hora_ini New value of property hora_ini.
     */
    public void setHora_ini(String hora_ini) {
        this.hora_ini = hora_ini;
    }

    /**
     * Holds value of property hora_fin.
     */
    private String hora_fin;

    /**
     * Getter for property hora_fin.
     * @return Value of property hora_fin.
     */
    public String getHora_fin() {
        return this.hora_fin;
    }

    /**
     * Setter for property hora_fin.
     * @param hora_fin New value of property hora_fin.
     */
    public void setHora_fin(String hora_fin) {
        this.hora_fin = hora_fin;
    }

    /**
     * Holds value of property dia_sem.
     */
    private String dia_sem;

    /**
     * Getter for property dia_sem.
     * @return Value of property dia_sem.
     */
    public String getDia_sem() {
        return this.dia_sem;
    }

    /**
     * Setter for property dia_sem.
     * @param dia_sem New value of property dia_sem.
     */
    public void setDia_sem(String dia_sem) {
        this.dia_sem = dia_sem;
    }




}